﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<header class="web-g-hd">
    <div class="g-bd clearfix">
        <div class="g-lt pull-left">
            <i class="icon icon-logo"></i>
            <span class="title">租房宝</span>
            <i class="icon icon-web-sub-title"></i>
        </div>
        <ul class="g-rt pull-right list-inline">
            <!-- <li class="inline-item">
                <span><i class="icon icon-company"></i>&emsp;上海小于科技有限公司</span>
            </li> -->
            <li class="inline-item">
                <a href="${ctx}/j_spring_security_logout"><i class="icon icon-loginout"></i></a>
            </li>
        </ul>
        <div class="nav-area">
            <nav class="list-inline menu">
                <!-- <li class="menu-item z-active"><a href="">数据管理</a></li>
                <li class="menu-item"><a href="">订单管理</a></li>
                <li class="menu-item"><a href="">财务管理</a></li>
                <li class="menu-item"><a href="">系统管理</a></li> -->

                <c:forEach var="menu" items="${menus}">
                 <sec:authorize access="hasResource('menus','${menu.id}')">
                    <li ${menu.id == activeMenu ? 'class="menu-item z-active"' : 'class="menu-item"'}><a href="${ctx}/${menu.url}">${menu.name}</a></li>
                 </sec:authorize> 
                </c:forEach>
            </nav>
            
    	</div>
    	<%@ include file="/WEB-INF/include/welcome.jsp"%>
</header>
	